Release 10.1A: OpenEdge Development:
Java Open Clients


Checking for errors

On return from a proxy method call to an application service, you can check for errors in any updated output ProDataGraph. You can check for errors at the ProDataGraph, table, and row levels, and return error strings for the table and row levels. The error checking methods return true if there is an error at the specified level.

ProDataGraph level

You can check if any errors are returned in the output ProDataGraph using this ProDataGraph method:

Syntax
boolean hasError() 

Table level

You can check if an error is returned for a table and get the error string using these ProDataObject methods:

Syntax
boolean hasTableError() 
String getTableErrorString() 

You only need to invoke these methods on one ProDataObject in a given table collection. These methods return the same information, which applies to the entire table, for any ProDataObject in the list.

Row level

You can check if an error is returned for a row and get the error string using these ProDataObject methods:

Syntax
boolean hasRowError() 
String getRowErrorString() 

Thus, these methods can return different information for each ProDataObject in a given table collection.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095